#ifndef LAGUAGECONTROLLER_H
#define LAGUAGECONTROLLER_H

#include <QObject>
#include "dataFormate.h"
#include <QTranslator>
class LaguageController : public QObject
{
    Q_OBJECT
public:
    static LaguageController *getInstance();

    void setCurrentLanguage(E_LANGUAGE);

    E_LANGUAGE getCurrentLanguage();

    E_LANGUAGE getConfigLanguage();

signals:

private:
    explicit LaguageController(QObject *parent = nullptr);
    static LaguageController *m_LanguageController;
    E_LANGUAGE m_language;
    QTranslator *m_translator;
};

#endif // LAGUAGECONTROLLER_H
